/**
 * @Author: 芦小星
 * @Date: 2019/11/04
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-10-29 10:02:39
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

//  查询周期
export const getList = params => axios.get(`${SERVER.VEHICLE}/salItemCycle/queryCycle`, { params });

// 保存周期
export const saveList = params => axios.post(`${SERVER.VEHICLE}/salItemCycle/saveCycle`, params);

//  查询项目
export const ItemList = params => axios.get(`${SERVER.VEHICLE}/salItemCycle/queryItem`, { params });

// 保存周期
export const saveItem = params => axios.post(`${SERVER.VEHICLE}/salItemCycle/saveItem`, params);

//  查询项目周期关系
export const CycleList = params => axios.get(`${SERVER.VEHICLE}/salItemCycle/queryItemCycle`, { params });

// 保存项目周期关系
export const saveCycleList = params => axios.post(`${SERVER.VEHICLE}/salItemCycle/saveItemCycle`, params);
